package com.yc.txx.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.time.LocalDateTime;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 天下行租车-用户表-4
 * </p>
 *
 * @author k
 * @since 2025-02-04
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("txx_user")
@ApiModel(value="TxxUser对象", description="天下行租车-用户表-4")
public class TxxUser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "编号")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty(value = "英文名: 账号")
    @NotNull(message = "账号不能为空")
    private String ename;

    @ApiModelProperty(value = "中文名: 昵称")
    private String cname;

    @ApiModelProperty(value = "密码")
    @NotNull(message = "密码不能为空")
    @Length(min = 3,message = "密码至少为3")
    private String password;

    @ApiModelProperty(value = "邮箱")
    @NotNull(message = "邮箱不能为空")
    private String eamil;

    @ApiModelProperty(value = "头像图片")
    private String headimg;

    @ApiModelProperty(value = "注册时间")
    private LocalDateTime createtime;


}
